package com.etc.common;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ThymeleafController {

    @RequestMapping("/{name}.xhtml")
    public String forward(@PathVariable("name") String name) {
        return name;
    }
    @RequestMapping("/demo/{name}.xhtml")
    public String forwarddemo(@PathVariable("name") String name) {
        return "demo/" + name;
    }

    @RequestMapping("acedemo/{viewname}.ahtml")
    public String acedemothymelaf(@PathVariable("viewname") String viewname) {

        return "acedemo/" + viewname;
    }
}